const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,

  devServer: {
    proxy: {
      '/api/login': {
        target: 'http://127.0.0.1:8000/api/login',
        changeOrigin: true,
        pathRewrite:{'^/api/login':''},
      },
      '/api/logout': {
        target: 'http://127.0.0.1:8000/api/logout',
        changeOrigin: true,
        pathRewrite:{'^/api/logout':''},
      },
      '/api/cab': {
        target: 'http://127.0.0.1:8000/api/cab',
        changeOrigin: true,
        pathRewrite: {
          '^/api/cab':''
        }
      },


    }
  }
})
